// 合作商相关
import request from '@/utils/request'

// 搜索合作商
export const searchParther = (params) => request({
  url: '/user-service/partner/search',
  params
})

// 新增合作商
export const addParther = (data) => request({
  url: '/user-service/partner',
  method: 'POST',
  data
})
// 删除合作商
export const delParther = (data) => request({
  url: `/user-service/partner/${data.id}`,
  method: 'DELETE'
})
// 修改合作商
export const modifyParther = (data) => request({
  url: `/user-service/partner/${data.id}`,
  method: 'PUT',
  data
})
// 充值合作商密码
export const resetPassword = (id) => request({
  url: `/user-service/partner/resetPwd/${id}`,
  method: 'PUT'
})
